<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('pinterest-boards', PinterestBoardController::class);
    $router->resource('pinterest-keywords', PinterestKeywordController::class);
    $router->resource('pins', PinController::class);
    $router->resource('pin-schedule', PinScheduleController::class);
    $router->resource('websites', WebsiteController::class);
    $router->resource('articles', ArticleController::class);
    $router->resource('pin-accounts', PinAccountController::class);
    $router->get('import-keywords', "ToolController@importKeywords");
    $router->post('import-keywords', "ToolController@import");

    $router->get('import-boards', "ToolController@importBoards");
    $router->post('import-board-keywords', "ToolController@importBoardKeywords");




});
